package com.bckj.fastboot.auth.remote;

import com.bckj.fastboot.auth.mapper.SysUserMapper;
import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.upms.api.dto.SysUserQuery;
import com.bckj.fastboot.upms.api.dto.SysUserRequest;
import com.bckj.fastboot.upms.api.dto.UserAuthInfo;
import com.bckj.fastboot.upms.api.entity.SysUser;
import com.bckj.fastboot.upms.api.service.SysUserRemoteService;
import com.bckj.fastboot.upms.api.vo.SysUserVO;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * SysUserRemoteServiceImpl
 *
 * @author wfc
 **/
@Service
public class SysUserRemoteServiceImpl implements SysUserRemoteService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public PageResult<SysUserVO> page(SysUserQuery query) {
        return null;
    }

    @Override
    public boolean save(SysUserRequest request) {
        return false;
    }

    @Override
    public boolean update(SysUserRequest request) {
        return false;
    }

    @Override
    public SysUserVO details(Long id) {
        return null;
    }

    @Override
    public boolean enabled(Long id) {
        return false;
    }

    @Override
    public boolean remove(Long id) {
        return false;
    }

    @Override
    public UserAuthInfo findByUsername(String username) {
        return sysUserMapper.findByUsername(username);
    }

    @Override
    public boolean savePerms(SysUserRequest request) {
        return false;
    }

    @Override
    public Set<SysUser> findByIds(Set<Long> ids) {
        return Set.of();
    }
}
